package com.yanqu.road.entity.enums;

import java.util.HashSet;
import java.util.Set;

public enum eOccupationType {

	/**
	 * 士
	 */
	Scholar((short) 1),
	/**
	 * 农
	 */
	Farmer((short) 2),
	/**
	 * 工
	 */
	Craftsman((short) 3),
	/**
	 * 商
	 */
	Businessman((short) 4),
	/**
	 * 侠
	 */
	Knight((short) 5),
	;

	private short intValue;

	private eOccupationType(short value) {
		intValue = value;
	}

	public short getValue() {
		return intValue;
	}

	/**
	 * 获取职业集合
	 * @return
	 */
	public static Set<Integer> getOccuptionTypeSet() {
		Set<Integer> set = new HashSet<>();
		for (eOccupationType type : eOccupationType.values()) {
			set.add((int) type.getValue());
		}
		return set;
	}
}
